<template>
  <el-dialog
      :visible.sync="visible"
      width="46%"
      :before-close="handleClose">
      <div slot="title">
        分日数据（1）
      </div>
      <el-table :data="tableData" style="width: 100%">
        <el-table-column
          prop="date"
          label="日期"
          width="180">
        </el-table-column>
        <el-table-column
          prop="name"
          label="长按人数"
          width="180">
        </el-table-column>
        <el-table-column
          prop="address"
          label="进群人数">
        </el-table-column>
        <el-table-column
          prop="address"
          label="退群人数">
        <template slot="empty">
          <TableEmpty />
        </template>
      </el-table-column>
    </el-table>
      <span slot="footer" class="dialog-footer">
        <el-button @click="onHandleClose">取消</el-button>
        <el-button type="primary" @click="onExportsExecel">导出数据</el-button>
      </span>
    </el-dialog>
</template>
<script>
export default {
  data() {
    return {
      tableData: []
    }
  },
  props: ['visible'],
  methods: {
    onHandleClose() {
      this.$emit('onHandleClose');
    },
    onExportsExecel() {
      this.$emit('onHandleClose');
    }
  }
}
</script>